import request from '@/config/request'

export function listDictionaries() {
    return request({
        url: '/basic/dictionaries-type/listDictionaries',
        method: 'get',
    })
}


export function dictionarieslist(query) {
    return request({
        url: '/basic/dictionaries-type/list',
        method: 'get',
        params: query
    })
}

// 新增菜单
export function addDictionaries(data) {
    return request({
        url: '/basic/dictionaries-type',
        method: 'post',
        data: data
    })
}

// 修改菜单
export function updateDictionaries(data) {
    return request({
        url: '/basic/dictionaries-type',
        method: 'put',
        data: data
    })
}
export function getdictionaries(id) {
    return request({
        url: '/basic/dictionaries-type/'+id,
        method: 'get',
    })
}

// 删除菜单
export function deldictionaries(id) {
    return request({
        url: '/basic/dictionaries-type/'+id,
        method: 'delete'
    })
}